package jpa.entitys.promis.sales;

import java.io.Serializable;

import javax.persistence.*;

import java.math.BigDecimal;


/**
 * The persistent class for the VW_SYNC_MKT_CONTR_JO_OWN database table.
 * 
 */
@Entity
@Table(name="VW_SYNC_MKT_CONTR_JO_OWN")
@NamedQueries({
    @NamedQuery(name = "VwSyncMktContrJoOwn.findAll", query = " SELECT c FROM VwSyncMktContrJoOwn c "),
    @NamedQuery(name = "VwSyncMktContrJoOwn.findById", query = " SELECT c FROM VwSyncMktContrJoOwn c WHERE c.jointOwnerid = :Id "),
    @NamedQuery(name = "VwSyncMktContrJoOwn.findByBookingNo", query = " SELECT c FROM VwSyncMktContrJoOwn c WHERE c.company = :company And c.project = :project And c.bookingDocumentNo = :bookingDocumentNo "),
    @NamedQuery(name = "VwSyncMktContrJoOwn.findByContractNo", query = " SELECT c FROM VwSyncMktContrJoOwn c WHERE c.company = :company And c.project = :project And c.contractDocumentNo = :contractDocumentNo ")
})
public class VwSyncMktContrJoOwn extends jpa.entitys.common.CommonEntity implements Serializable {
	private static final long serialVersionUID = 1L;

	@Column(unique=true, length=2)
	private String company;

	@Column(unique=true, length=30)
	private String project;
	
	@Column(name="ANDOR_DESC", length=8)
	private String andorDesc;

	@Column(name="BOOKING_DOCUMENT_NO", length=2000)
	private String bookingDocumentNo;

	@Column(name="BOOKING_NO", precision=6)
	private BigDecimal bookingNo;

	@Column(name="BOOKING_SERIES", length=4)
	private String bookingSeries;

	@Column(name="BOOKING_TYPE", length=2)
	private String bookingType;

	@Column(name="CONTRACT_DOCUMENT_NO", length=2000)
	private String contractDocumentNo;

	@Column(name="CONTRACT_NUMBER", precision=6)
	private BigDecimal contractNumber;

	@Column(name="CONTRACT_SERIES", length=4)
	private String contractSeries;

	@Id
	@Column(name="JOINT_OWNERS_ID", nullable=false, length=100)
	private String jointOwnerid;
	
	@Override public String toString() { return org.apache.commons.lang.builder.ToStringBuilder.reflectionToString(this);}

	@Column(name="FLAG_ANDOR", length=1)
	private String flagAndor;

	@Column(name="OWNER_CODE", length=30)
	private String ownerCode;

	@Column(name="OWNER_NAME", length=300)
	private String ownerName;

	@Column(name="OWNER_ROLE_SEQ", length=4)
	private String ownerRoleSeq;

	@Column(name="QUOTE_NUMBER", precision=6)
	private BigDecimal quoteNumber;

	@Column(name="QUOTE_SERIES", length=4)
	private String quoteSeries;

	@Column(name="QUOTE_TYPE", length=2)
	private String quoteType;

	@Column(name="REVISION_NUMBER", precision=3)
	private BigDecimal revisionNumber;

	@Column(precision=6)
	private BigDecimal seq;

	@Column(name="TYPE_OF_CONTRACT", length=2)
	private String typeOfContract;
	
	

    /**
	 * @return the company
	 */
	public String getCompany() {
		return company;
	}

	/**
	 * @param company the company to set
	 */
	public void setCompany(String company) {
		this.company = company;
	}

	/**
	 * @return the project
	 */
	public String getProject() {
		return project;
	}

	/**
	 * @param project the project to set
	 */
	public void setProject(String project) {
		this.project = project;
	}

	/**
	 * @return the jointOwnerid
	 */
	public String getJointOwnerid() {
		return jointOwnerid;
	}

	/**
	 * @param jointOwnerid the jointOwnerid to set
	 */
	public void setJointOwnerid(String jointOwnerid) {
		this.jointOwnerid = jointOwnerid;
	}

	public VwSyncMktContrJoOwn() {
    }

	public String getAndorDesc() {
		return this.andorDesc;
	}

	public void setAndorDesc(String andorDesc) {
		this.andorDesc = andorDesc;
	}

	public String getBookingDocumentNo() {
		return this.bookingDocumentNo;
	}

	public void setBookingDocumentNo(String bookingDocumentNo) {
		this.bookingDocumentNo = bookingDocumentNo;
	}

	public BigDecimal getBookingNo() {
		return this.bookingNo;
	}

	public void setBookingNo(BigDecimal bookingNo) {
		this.bookingNo = bookingNo;
	}

	public String getBookingSeries() {
		return this.bookingSeries;
	}

	public void setBookingSeries(String bookingSeries) {
		this.bookingSeries = bookingSeries;
	}

	public String getBookingType() {
		return this.bookingType;
	}

	public void setBookingType(String bookingType) {
		this.bookingType = bookingType;
	}

	public String getContractDocumentNo() {
		return this.contractDocumentNo;
	}

	public void setContractDocumentNo(String contractDocumentNo) {
		this.contractDocumentNo = contractDocumentNo;
	}

	public BigDecimal getContractNumber() {
		return this.contractNumber;
	}

	public void setContractNumber(BigDecimal contractNumber) {
		this.contractNumber = contractNumber;
	}

	public String getContractSeries() {
		return this.contractSeries;
	}

	public void setContractSeries(String contractSeries) {
		this.contractSeries = contractSeries;
	}

	public String getFlagAndor() {
		return this.flagAndor;
	}

	public void setFlagAndor(String flagAndor) {
		this.flagAndor = flagAndor;
	}

	public String getOwnerCode() {
		return this.ownerCode;
	}

	public void setOwnerCode(String ownerCode) {
		this.ownerCode = ownerCode;
	}

	public String getOwnerName() {
		return this.ownerName;
	}

	public void setOwnerName(String ownerName) {
		this.ownerName = ownerName;
	}

	public String getOwnerRoleSeq() {
		return this.ownerRoleSeq;
	}

	public void setOwnerRoleSeq(String ownerRoleSeq) {
		this.ownerRoleSeq = ownerRoleSeq;
	}

	public BigDecimal getQuoteNumber() {
		return this.quoteNumber;
	}

	public void setQuoteNumber(BigDecimal quoteNumber) {
		this.quoteNumber = quoteNumber;
	}

	public String getQuoteSeries() {
		return this.quoteSeries;
	}

	public void setQuoteSeries(String quoteSeries) {
		this.quoteSeries = quoteSeries;
	}

	public String getQuoteType() {
		return this.quoteType;
	}

	public void setQuoteType(String quoteType) {
		this.quoteType = quoteType;
	}

	public BigDecimal getRevisionNumber() {
		return this.revisionNumber;
	}

	public void setRevisionNumber(BigDecimal revisionNumber) {
		this.revisionNumber = revisionNumber;
	}

	public BigDecimal getSeq() {
		return this.seq;
	}

	public void setSeq(BigDecimal seq) {
		this.seq = seq;
	}

	public String getTypeOfContract() {
		return this.typeOfContract;
	}

	public void setTypeOfContract(String typeOfContract) {
		this.typeOfContract = typeOfContract;
	}

}